Two - pass heap pro ling : a matter of life
نویسنده
چکیده
A heap proole is a chart showing the contents of heap memory throughout a computation. Contents are depicted abstractly by showing how much space is occupied by memory cells in each of several classes. A good heap prooler can use a variety of attributes of memory cells to deene a classiication. EEective prooling usually involves a combination of attributes. The ideal prooler gives full support for combination in two ways. First, a section of the heap of interest to the programmer can be speciied by constraining the values of any combination of cell attributes. Secondly, no matter what attributes are used to specify such a section, a heap proole can be obtained for that section only, and any other attribute can be used to deene the classiication. Achieving this ideal is not simple for some combinations of attributes. A heap proole is derived by interpolation of a series of censuses of heap contents at diierent stages. The obvious way to obtain census data is to traverse the live heap at intervals throughout the computation. This is ne for static attributes (eg. What type of value does this memory cell represent?), and for dynamic attributes that can be determined for each cell by examining the heap at any given moment (eg. From which function closures can this cell be reached?). But some attributes of cells can only be determined retrospectively by post-mortem inspection as a cell is over-written or garbage-collected (eg. Is this cell ever used again?). Now we see the problem: if a prooler supports both live and post-mortem attributes, how can we implement the ideal of unrestricted combinations? That is the problem we solve in this paper. We give techniques for prooling a heap section speciied in terms of both live and post-mortem attributes. We show how to generate live-attribute prooles of a section of the heap speciied using post-mortem attributes, and vice versa. 1 Variety and combination in heap prooling We begin by reviewing the diierent kinds of memory-cell attributes on which heap proolers to-date have been based, and how these attributes have been combined. The original heap prooler of the kind we are concerned with in this paper dealt with just two attributes of heap cells RW93]. A producer proole classiies cells by
منابع مشابه
Two-pass Heap Pro ling: a Matter of Life and Death
A heap proole is a chart showing the contents of heap memory throughout a computation. Contents are depicted abstractly by showing how much space is occupied by memory cells in each of several classes. A good heap prooler can use a variety of attributes of memory cells to deene a classiication. EEective prooling usually involves a combination of attributes. The ideal prooler gives full support ...
متن کاملTwo-Pass Heap Profiling: A Matter of Life and Death
A heap proole is a chart showing the contents of heap memory throughout a computation. Contents are depicted abstractly by showing how much space is occupied by memory cells in each of several classes. A good heap prooler can use a variety of attributes of memory cells to deene a classiication. EEective prooling usually involves a combination of attributes. The ideal prooler gives full support ...
متن کاملLag , drag and post - mortem heap pro ling ( preliminary note )
The context for this paper is functional computation by graph reduction. Our overall aim is more eecient use of memory. The speciic topic is the detection of dormant cells in the live graph | those retained in heap memory though not actually playing a useful role in computation. We describe a prooler that can identify heap consumption by suchùseless' cells. Unlike heap proolers based on travers...
متن کاملEffects of Pregnant Leach Solution Temperature on the Permeability of Gravelly Drainage Layer of Heap Leaching Structures
In copper heap leaching structures, the ore is leached by an acidic solution. After dissolving the ore mineral, the heap is drained off in the acidic solution using a drainage system (consisting of a network of perforated polyethylene pipes and gravelly drainage layers) and is, then, transferred to the leaching plant for copper extraction where the copper is extracted and the remaining solution...
متن کاملNew dimensions in heap pro ling
First-generation heap proolers for lazy functional languages have proved to be eeective tools for locating some kinds of space faults, but in other cases they cannot provide suucient information to solve the problem. This paper describes the design, implementation and use of a new prooler that goes beyond the two-dimensionaìwho produces what' view of heap cells to provide information about thei...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 1996